import { defineConfig } from "@farmfe/core";
import vue from "@vitejs/plugin-vue";
import babel from "vite-plugin-babel";
import { costVitePlugin } from "../../plugins/cost-vite-plugin";
export default defineConfig({
  vitePlugins: [
    costVitePlugin("farm-babel"),
    vue(),
    babel(), // 经验证无效，farm内部使用的解析器是SWC,不能这样简单替换
  ],
  compilation: {
    partialBundling: {
      targetMinSize: 1,
    },
  },
});
